<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="LocaleStringResources.aspx.cs" Inherits="Tathata.Web.Administration.Administration_LocaleStringResources" %>

<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <h4>
        Localization</h4>
    <br />
    <table>
        <tr>
            <td class="adminTitle">
                Select language:
            </td>
            <td class="adminData">
                <asp:DropDownList ID="ddlLanguage" runat="server" AutoPostBack="true" CssClass="adminInput"
                    OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <br />
    <asp:GridView ID="gvLocaleStringResources" runat="server" AutoGenerateColumns="False"
        Width="100%">
        <Columns>
            <asp:BoundField DataField="LocaleStringResourceID" HeaderText="LocaleStringResourceID"
                Visible="False"></asp:BoundField>
            <asp:TemplateField HeaderText="Language" ItemStyle-Width="20%">
                <ItemTemplate>
                    <%#((Language)Eval("Language")).Name%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ResourceName" HeaderText="Resource name" ItemStyle-Width="30%"></asp:BoundField>
            <asp:BoundField DataField="ResourceValue" HeaderText="Resource value" ItemStyle-Width="40%"></asp:BoundField>
            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="LocaleStringResourceDetails.aspx?LocaleStringResourceID=<%#Eval("LocaleStringResourceID")%>">
                        Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br>
    <asp:Button runat="server" ID="btnAddNew" CssClass="adminButton" Text="Add" OnClick="btnAddNew_Click" />
    <br />
</asp:Content>
